// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:07


// Source File Name:   ny.java

package com.zelix;

import java.io.PrintWriter;
import java.lang.ref.SoftReference;
import java.util.*;


//            px, hs

public class ny
    implements Map
{

    private SoftReference a;
    private PrintWriter b[];
    private int c;
    private String d;
    private static String z;

    public ny()
    {
        this(101);
    }

    public ny(int i)
    {
        c = i;
        a();
    }

    public synchronized void clear()
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
            hashmap = b();
        hashmap.clear();
    }

    public synchronized boolean containsKey(Object obj)
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
        {
            b();
            return false;
        } else
        {
            return hashmap.containsKey(obj);
        }
    }

    public synchronized boolean containsValue(Object obj)
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
        {
            b();
            return false;
        } else
        {
            return hashmap.containsValue(obj);
        }
    }

    public synchronized Set entrySet()
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
        {
            b();
            return Collections.EMPTY_SET;
        } else
        {
            return Collections.unmodifiableSet(hashmap.entrySet());
        }
    }

    public synchronized Object get(Object obj)
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
            hashmap = b();
        return hashmap.get(obj);
    }

    private void a()
    {
        a = new SoftReference(new HashMap(px.a(c)));
    }

    public synchronized boolean isEmpty()
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
            hashmap = b();
        return hashmap.isEmpty();
    }

    public synchronized Set keySet()
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
        {
            b();
            return Collections.EMPTY_SET;
        } else
        {
            return Collections.unmodifiableSet(hashmap.keySet());
        }
    }

    public synchronized Object put(Object obj, Object obj1)
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
            hashmap = b();
        return hashmap.put(obj, obj1);
    }

    public synchronized void putAll(Map map)
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
            hashmap = b();
        hashmap.putAll(map);
    }

    private HashMap b()
    {
        HashMap hashmap;
        int j;
        j = hs.c;
        a();
        hashmap = (HashMap)a.get();
        if(b == null) goto _L2; else goto _L1
_L1:
        int i = 0;
        if(j == 0) goto _L4; else goto _L3
_L3:
        b[i].println(d + z);
        b[i].flush();
        i++;
_L4:
        if(i < b.length) goto _L3; else goto _L2
_L2:
        return hashmap;
    }

    public synchronized Object remove(Object obj)
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
            hashmap = b();
        return hashmap.remove(obj);
    }

    public synchronized int size()
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
            hashmap = b();
        return hashmap.size();
    }

    public synchronized Collection values()
    {
        HashMap hashmap = (HashMap)a.get();
        if(hashmap == null)
        {
            b();
            return Collections.EMPTY_SET;
        } else
        {
            return Collections.unmodifiableCollection(hashmap.values());
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x19;
                    break;
                case 1:
                    key = 36;
                    break;
                case 2:
                    key = 66;
                    break;
                case 3:
                    key = 11;
                    break;
                default:
                    key = 118;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        z = z("9G.n\027kA&+\022lAb\177\0319H#h\0359K$+\033|I-y\0177\nl".toCharArray());
    }
}